Make the presentation of the stack sidebar listbox nicer for A11Y
authorLukáš Tyrychtr <lukastyrychtr@gmail.com>
Thu, 21 Apr 2022 15:55:39 +0000 (17:55 +0200)
committerLukáš Tyrychtr <lukastyrychtr@gmail.com>
Thu, 21 Apr 2022 15:55:39 +0000 (17:55 +0200)
This fixes #4577.

gtk/gtkstacksidebar.c

index 49d26de4302e4d4c9b72b552d3ad2c86a7a135ea..0e84f52c11d0f99d6266e43fa7570906a617034b 100644 (file)
@@ -148,6 +148,10 @@ gtk_stack_sidebar_init (GtkStackSidebar *self)
 
   self->list = GTK_LIST_BOX (gtk_list_box_new ());
   gtk_widget_add_css_class (GTK_WIDGET (self->list), "navigation-sidebar");
+  gtk_accessible_update_property (GTK_ACCESSIBLE (self->list),
+                                  GTK_ACCESSIBLE_PROPERTY_LABEL, "Sidebar",
+                                  -1);
+
 
   gtk_scrolled_window_set_child (GTK_SCROLLED_WINDOW (sw), GTK_WIDGET (self->list));